package com.hxd.otc.module.wallet.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hxd.otc.R;
import com.hxd.otc.module.wallet.bean.WalletCoinRecordBean;
import com.hxd.otc.utils.DateUtil;

public class OneCoinTypeDetailAdapter extends BaseQuickAdapter<WalletCoinRecordBean, BaseViewHolder> {

    public OneCoinTypeDetailAdapter() {
        super(R.layout.adapter_one_coin_type_detail, null);
    }

    @Override
    protected void convert(BaseViewHolder helper, WalletCoinRecordBean item) {
//        helper.setText(R.id.tv_time, DateUtil.format(item.createTime,DateUtil.YY_MM_DD_HH_MM_SS));
//        helper.setText(R.id.tv_type, item.tradeType);
//        if (item.tradeAmount.startsWith("-")) {
//            helper.setTextColor(R.id.tv_number, UIUtils.getContext().getResources().getColor(R.color.color_FF464E5F));
//            helper.setText(R.id.tv_number, item.tradeAmount);
//        } else {
//            helper.setText(R.id.tv_number, "+" + item.tradeAmount);
//            helper.setTextColor(R.id.tv_number, UIUtils.getContext().getResources().getColor(R.color.color_text1));
//        }
    }
}
